package cn.itsource.ticket.thread.synchronizedmethod;

/**
 *	测试卖票案例
 */
public class TicketThreadTest {

	public static void main(String[] args) {
		//创建卖票线程对象：苍苍
		TicketThread cangCang = new TicketThread("苍苍");
		//创建卖票线程对象：结依
		TicketThread jieYi = new TicketThread("结依");
		//创建卖票线程对象：鹰鹰
		TicketThread yingYing = new TicketThread("鹰鹰");
		
		//启动线程
		cangCang.start();
		jieYi.start();
		yingYing.start();
		
	}

}
